package com.hejx;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 追风少年
 *
 * @email doubihah@foxmail.com
 * @create 2017-07-13 10:41
 **/
public class Test {

    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList();
        list.add(3);
        list.add(3);
        list.add(2);
        list.add(2);
        list.add(4);
        list.add(4);
        list.add(8);
        list.add(5);
        list.add(6);
        list.add(8);
        List<Integer> tingPaiList = Majiang.getTingPaiList(list);
        System.out.println("tingPaiList:" + tingPaiList.toString());
        boolean canHu = Majiang.canHu(list, 7);
        System.out.println(canHu);
    }

}
